<div class="bjui-pageHeader">
<form id="pagerForm" data-toggle="ajaxsearch" action="__URL__/userorder/" method="post">
    <input type="hidden" name="pageSize" value="{$numPerPage}">
    <input type="hidden" name="pageCurrent" value="{$_REQUEST['pageNum']|default=1}">
         <div class="bjui-searchBar">
                 <label>订单号/借款人：</label><input type="text" value="{$_REQUEST['keys']}" name="keys" class="form-control" size="12" />
              <label>分页数:</label>
			  <select name="page">
			    <if condition="$numPerPage == 15">
				  <option id="15" value="15" selected="selected">15</option>
				  <option value="20">20</option>
				  <option value="30">30</option>
				<elseif condition="$numPerPage == 20" />
				  <option id="20" value="20" selected="selected">20</option>
				  <option value="15">15</option>
				  <option value="30">30</option>
				<elseif condition="$numPerPage == 30" />
				  <option id="30" value="30" selected="selected">30</option>
				  <option value="15">15</option>
				  <option value="20">20</option>
				<else />
				  <option value=""></option>
				  <option value="15">15</option>
				  <option value="20">20</option>
				  <option value="30">30</option>
				</if>
			  </select>
             <button type="submit"  class="btn-default" data-icon="search">查询</button>
              <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
              <php>if(display(CONTROLLER_NAME.'/del')){</php><span style="float:right;" ><a href="__URL__/del/navTabId/{:CONTROLLER_NAME}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要清理吗？" data-icon="remove">清理</a></span><php>}</php>
              <span><a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">刷新</a>&nbsp&nbsp&nbsp&nbsp
        </div>  
</form>
</div>

<div class="bjui-pageContent tableContent">
     <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
        <thead>
            <tr>
            <th width="30" height="30"></th>
            <th>用户id</th>
            <th>姓名</th>
            <th>成功次数</th>
            <th>拒绝次数</th>
            <th>取消次数</th>
            <th>操作</th>
            </tr>
        </thead>
        <tbody>
       <foreach name="list" item="v">
        <tr>
        <td height=25></td>
        <Td>{$v.id}</td>
        <Td>{$v.user_name}</td>
        <Td>{$v[1]}</td>
        <Td>{$v[0]}</td>
        <td>{$v[2]}</td>
        <Td><a href="__URL__/details/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}" class="btn btn-green btn-sm" data-toggle="dialog" data-width="800" data-height="500" data-id="dialog-mask" data-mask="true">详情</a></td>
        </tr>
        </foreach>
        </tbody>
    </table>
	<?PHP
	    $page = $numPerPage;
	?>
    <div class="bjui-pageFooter">
        <div class="pages">
            <span>共 {$totalCount} 条  每页 {$numPerPage} 条</span>
        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$page}" data-page-current="{$currentPage}">
      </div>
</div>
</div>